<%@page pageEncoding = "utf-8" contentType = "text/html;charset=utf-8"%>

<%@taglib prefix = "c" uri = "http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix = "fmt" uri = "http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix = "fn" uri = "http://java.sun.com/jsp/jstl/functions"%>

<ul class = "navbarpaging">
  <c:forEach var = "pagingLink" items = "${param.pagingLinks}">
    <c:choose>
      <c:when test='${pagingLink.address == ""}'>
        <li><span class="currentpage">${pagingLink.text}</span></li>
      </c:when>
      <c:otherwise>
        <li><a href="${pagingLink.address}">${pagingLink.text}</a></li>
      </c:otherwise>     
    </c:choose>       
  </c:forEach>
</ul>